#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int N = 50 + 10;

int t;
ll a, b, c;

int main() {
#ifdef LOCAL
    freopen("in.txt", "r", stdin);
    freopen("out.txt", "w", stdout);
#endif
    cin >> t;
    while(t--) {
        cin >> a >> b >> c;
        if ((2*b-c) % a == 0 && 2*b-c > 0) {
            puts("yes");
            continue;
        }

        if ((a+c)%(2*b) == 0 && a+c > 0) {
            puts("yes");
            continue;
        }

        if ((2*b-a) % c == 0 && 2*b-a > 0) {
            puts("yes");
            continue;
        }

        puts("no");
    }
    return 0;
}